square recognition with different objects